package com.example.portdemo.date.dao;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import com.example.portdemo.date.model.MovieEntity;

import java.util.List;

@Dao
public interface MovieDao {
    @Insert
    void insertAll(MovieEntity... movieEntities);

    @Query("SELECT * FROM movies")
    List<MovieEntity> getMoviesList();
}